package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.engine4cloud.tdf.common.core.constant.enums.SimpleAuditActionStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 突发事件上报
 *
 * @author wenjie
 * @date 2024-04-11 10:23:14
 */
@Data
@TableName("sp_emergency_report")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "突发事件上报")
public class SpEmergencyReportEntity extends Model<SpEmergencyReportEntity> {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 矫正人员编号
     */
    @Schema(description = "矫正人员编号")
    private String rybh;

    /**
     * 流程编号
     */
    @Schema(description = "流程编号")
    private String lcbh;

    /**
     * 发生时间
     */
    @Schema(description = "发生时间")
    private LocalDateTime fssj;

    @Schema(description = "事件发生所在省（区、市）")
    private String fsszs;

    @Schema(description = "事件发生所在地（市、州）")
    private String fsszds;

    @Schema(description = "事件发生所在县（市、区）")
    private String fsszxq;

    @Schema(description = "事件发生所在（乡镇、街道）")
    private String fsszd;

    /**
     * 发生地点
     */
    @Schema(description = "发生地点")
    private String fsdd;

    /**
     * 经度
     */
    @Schema(description = "经度")
    private String jd;

    /**
     * 纬度
     */
    @Schema(description = "纬度")
    private String wd;

    /**
     * 上报人
     */
    @Schema(description = "上报人")
    private String sbr;

    /**
     * 突发事件描述
     */
    @Schema(description = "突发事件描述")
    private String tfsjms;

    /**
     * 审核动作
     */
    @Schema(description = "审核动作", example = "CREATE")
    private SimpleAuditActionStatusEnum preAction;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}